<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 
           direction 设置文字浏览器中显示的方向   
           ltr(默认) left to right 左向右
           rtl right to left 右向左
              还要加上unicode-bidi: bidi-override;
        */
        div, span {
            border: 1px solid red;
        }
        div, span {
            direction: ltr;
            direction: rtl;
            unicode-bidi: bidi-override;
        }
    </style>
</head>
<body>
    <div>hello 杰克</div>
    <span>hello 杰克</span>
</body>
</html>